package com.example.customizeview;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class MainActivity extends AppCompatActivity {
    private ListView listView_two;
    private ListView listView_one;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_customize_viewgroup);
        listView_one = findViewById(R.id.lv_one);
        listView_two = findViewById(R.id.lv_two);

        String[] strs_one = {"1","2","3","4","5","6","1","1","1","1","1","1","1","1"};
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,strs_one);
        listView_one.setAdapter(adapter);

        String[] strs_two = {"A","B","C","D","E","F","G","H","A","A","A"};
        ArrayAdapter arrayAdapter = new ArrayAdapter(this,android.R.layout.simple_expandable_list_item_1,strs_two);
        listView_two.setAdapter(arrayAdapter);

    }
}
